package com.dd.mapper;
import java.util.Collection;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.dd.entity.Employees;

import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dhd
 * @since 2024-10-21
 */
@Mapper
public interface EmployeesMapper{
    //获取员工列表
    List<Employees> selectAllByEmpNameAndPhoneNumber(@Param("empName") String empName, @Param("phoneNumber") String phoneNumber);

    //新增
    int insertBatch(@Param("employeesCollection") List<Employees> employeesCollection);

    //修改
    int updateSelective(Employees employees);

    //删除
    int delByEmployeeId(@Param("employeeId") Integer employeeId);

    //获取用户信息通过登录名和密码
    Employees searchAllByLoginNameAndPassword(@Param("loginName") String loginName,
                                              @Param("password") String password);

    //获取登录名获取登录用户
    Employees searchAllByLoginName(@Param("loginName") String loginName);




    Employees searchAllByEmployeeId(@Param("employeeId") Integer employeeId);
}
